[ExecuTorch][WebGPU] Add reduce op (sum/mean) to the WebGPU backend#20923
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20923
Note: Links to docs will display an error until the docs builds have been completed. ❌ 31 New Failures, 1 Unrelated Failure, 6 Unclassified FailuresAs of commit 4d79748 with merge base 21554e5 ( NEW FAILURES - The following jobs have failed:
UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
SS-JIA
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Pull Request resolved: #20923 Add an `aten.sum.dim_IntList` / `aten.mean.dim` reduction handler for the training tail. Key changes: - `runtime/ops/reduce/` — per-row reduction WGSL kernel + handler - `CMakeLists.txt` `WEBGPU_SRCS` — wire the source Reuses the shared Vulkan partitioner (`aten.sum.dim_IntList`/`mean.dim` already registered); WebGPU kernel only. Co-authored-with: Claude Code. ghstack-source-id: 405026057 @exported-using-ghexport Differential Revision: [D111755133](https://our.internmc.facebook.com/intern/diff/D111755133/)
Pull Request resolved: #20923 Add an `aten.sum.dim_IntList` / `aten.mean.dim` reduction handler for the training tail. Key changes: - `runtime/ops/reduce/` — per-row reduction WGSL kernel + handler - `CMakeLists.txt` `WEBGPU_SRCS` — wire the source Reuses the shared Vulkan partitioner (`aten.sum.dim_IntList`/`mean.dim` already registered); WebGPU kernel only. Co-authored-with: Claude Code. ghstack-source-id: 405026057 @exported-using-ghexport Differential Revision: [D111755133](https://our.internmc.facebook.com/intern/diff/D111755133/)
Pull Request resolved: #20923 Add an `aten.sum.dim_IntList` / `aten.mean.dim` reduction handler for the training tail. Key changes: - `runtime/ops/reduce/` — per-row reduction WGSL kernel + handler - `CMakeLists.txt` `WEBGPU_SRCS` — wire the source Reuses the shared Vulkan partitioner (`aten.sum.dim_IntList`/`mean.dim` already registered); WebGPU kernel only. Co-authored-with: Claude Code. ghstack-source-id: 405026057 @exported-using-ghexport Differential Revision: [D111755133](https://our.internmc.facebook.com/intern/diff/D111755133/)
Pull Request resolved: #20923 Add an `aten.sum.dim_IntList` / `aten.mean.dim` reduction handler for the training tail. Key changes: - `runtime/ops/reduce/` — per-row reduction WGSL kernel + handler - `CMakeLists.txt` `WEBGPU_SRCS` — wire the source Reuses the shared Vulkan partitioner (`aten.sum.dim_IntList`/`mean.dim` already registered); WebGPU kernel only. Co-authored-with: Claude Code. ghstack-source-id: 405026057 @exported-using-ghexport Differential Revision: [D111755133](https://our.internmc.facebook.com/intern/diff/D111755133/)
Pull Request resolved: #20923 Add an `aten.sum.dim_IntList` / `aten.mean.dim` reduction handler for the training tail. Key changes: - `runtime/ops/reduce/` — per-row reduction WGSL kernel + handler - `CMakeLists.txt` `WEBGPU_SRCS` — wire the source Reuses the shared Vulkan partitioner (`aten.sum.dim_IntList`/`mean.dim` already registered); WebGPU kernel only. Co-authored-with: Claude Code. ghstack-source-id: 405026057 @exported-using-ghexport Differential Revision: [D111755133](https://our.internmc.facebook.com/intern/diff/D111755133/)
Pull Request resolved: #20923 Add an `aten.sum.dim_IntList` / `aten.mean.dim` reduction handler for the training tail. Key changes: - `runtime/ops/reduce/` — per-row reduction WGSL kernel + handler - `CMakeLists.txt` `WEBGPU_SRCS` — wire the source Reuses the shared Vulkan partitioner (`aten.sum.dim_IntList`/`mean.dim` already registered); WebGPU kernel only. Co-authored-with: Claude Code. ghstack-source-id: 405026057 @exported-using-ghexport Differential Revision: [D111755133](https://our.internmc.facebook.com/intern/diff/D111755133/)
Stack from ghstack (oldest at bottom):
Add an
aten.sum.dim_IntList/aten.mean.dimreduction handler for the training tail.Key changes:
runtime/ops/reduce/— per-row reduction WGSL kernel + handlerCMakeLists.txtWEBGPU_SRCS— wire the sourceReuses the shared Vulkan partitioner (
aten.sum.dim_IntList/mean.dimalready registered); WebGPU kernel only.Co-authored-with: Claude Code.
@exported-using-ghexport
Differential Revision: D111755133
Differential Revision: D111755133